	#include<iostream>
	using namespace std;
	typedef long long LL;
	int main()
	{
		LL n;
		cin >> n;
		LL ans = -1;
		for (LL i = 0; (LL)1 << i <= n; i++) {
			ans++;
		}
		cout << ans << endl;
		return 0;
	}